package com.imti.mall.product.service;

import com.imti.mall.model.cms.pojo.CmsPrefrenceAreaProductRelation;
import com.imti.mall.model.cms.pojo.CmsSubjectProductRelation;

import java.util.List;

public interface CmsPrefrenceAreaProductRelationService {

    /**
     * 根据商品id查询优选专区和产品关系表
     * @param id
     * @return
     */
    public List<CmsPrefrenceAreaProductRelation> getCmsPrefrenceAreaProductRelationProductId(Integer id);

    /**
     * 添加优选专区和产品关系表
     * @param cmsPrefrenceAreaProductRelation
     * @return
     */
    public Integer addCmsPrefrenceAreaProductRelation(CmsPrefrenceAreaProductRelation cmsPrefrenceAreaProductRelation);
    /**
     * 批量添加
     * @param list
     * @return
     */
    public boolean addList(List<CmsPrefrenceAreaProductRelation> list);

    /**
     * 批量修改
     * @param list
     * @return
     */
    public boolean updateList(List<CmsPrefrenceAreaProductRelation> list);

    /**
     * 批量修改
     * @param list
     * @return
     */
    public boolean deleteList(List<CmsPrefrenceAreaProductRelation> list);

}
